from fixture import *
from cue import *
#TEST SCRIPTS

#Create Fixture Tests

#Add Fixture to SHow

#Change Fixture Setting
	#Verify setting changed & similar fixture didn't
	
Sun = DMXFixture("SR Fresnel", fresnel, "1")
SLElipsoidal = DMXFixture("SL Fresnel", ellipsoidal, "14")

testShowGrid = ShowGrid("My First Test Show Grid")
testShowGrid.addFixtureToShow(Sun)
testShowGrid.addFixtureToShow(SLElipsoidal)


Sun.setColorLabel("yellow")
SLElipsoidal.setColorLabel("blue")

print "The sun is on at " + str(Sun.getProperty("Intensity").getValue())
print "The SLElipsoidal is on at " + str(SLElipsoidal.getProperty("Intensity").getValue())

myFirstCueStack = CueStack("My First Cue Stack")
helloCueWorld = Cue("Hello World!")
letThereBeLight = Transition(Sun, "1 hour")
letThereBeLight.desiredSettings.getProperty("Intensity").setValue(100)
aSecondTransition = Transition(SLElipsoidal, "5 sec")
aThirdTransition = Transition(SLElipsoidal, "5 sec")
aSecondTransition.desiredSettings.getProperty("Intensity").setValue(33)
aThirdTransition.desiredSettings.getProperty("Intensity").setValue(50)

helloCueWorld.addTransitionToTop(letThereBeLight)
helloCueWorld.addTransitionToTop(aSecondTransition)
helloCueWorld.addTransitionToTop(aThirdTransition)
myFirstCueStack.addCuesToEnd(helloCueWorld)

print "go to first cue!!"
myFirstCueStack.goCue()
print "The sun is on at " + str(Sun.getProperty("Intensity").getValue())
print "The SLElipsoidal is on at " + str(SLElipsoidal.getProperty("Intensity").getValue())
